-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add navigation overlay block #55548
Add navigation overlay block #55548
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/blocks.php |
Size Change: -337 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
Flaky tests detected in 1e609fb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6625162703
|
I love this concept, and it would help me offload stuff in style.css in various themes. |
@@ -31,6 +31,7 @@ function gutenberg_reregister_core_block_types() { | |||
'media-text', | |||
'missing', | |||
'more', | |||
'navigation-overlay', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed so that Global Styles outputs the styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this?
This isn't working correctly, as the block itself isn't being output, so the CSS from Global Styles is never enqueued.... |
Perhaps this effort should be considered as an experiment? I'm not 100% certain is this is the direction to take yet, but it's certainly worth exploring. |
I don't think we'll need this now... |
What?
Adds a block that wraps the navigation overlay.
Why?
This will be useful for two reasons:
How?
Creates a new block called Navigation Overlay, which is used as the navigation overlay.
Testing Instructions